package com.example.mybatisdemo.common;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 通用的查询参数
 */
@Data
public class CommonQueryParam extends  CommonPageParam{
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;
}
